@extends('layouts.app')

@section('content')
    <div class="content">
        <div class="header">
            <ul class="breadcrumb">
                <li>用户管理</li>
                <li><a href="">添加用户</a> </li>
            </ul>
        </div>
        <div class="main-content">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#home" data-toggle="tab">添加</a></li>
            </ul>

            <div class="row">
                <div class="col-md-12">
                    <br>
                    <div id="myTabContent" class="tab-content">
                        <div class="tab-pane active in" id="home">
                            <form id="tab" class="form-horizontal" method="post">
                                <input type="hidden" name="_token" value="{{ csrf_token() }}">
                                <div class="form-group">
                                    <label for="input1" class="pull-left w120 control-label">用户名</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="email" id="email" placeholder="用户名" value="" required>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="input1" class="pull-left w120 control-label">姓名</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="name" id="name" placeholder="姓名" value="" required>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="input2" class="pull-left w120 control-label">密码</label>
                                    <div class="col-sm-6">
                                        <input type="password" class="form-control" name="password" id="password" placeholder="密码" value="">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="input7" class="pull-left w120 control-label">性别</label>
                                    <label class="radio-inline" style="margin-left:15px;">
                                        <input type="radio" name="sex" value="1" checked>男
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="sex" value="0">女
                                    </label>
                                </div>
                                <div class="form-group">
                                    <label for="input1" class="pull-left w120 control-label">联系方式</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="phone" id="phone" placeholder="联系方式" value="">
                                    </div>
                                </div>

                                <div class="btn-toolbar list-toolbar btn-toolbar2">
                                    <button class="btn btn-primary">确定</button>
                                    <a href="javascript:history.back(-1);" class="btn btn-back">返回</a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        $(function(){
            $('.valid').on('click',function(){
                if(this.checked){
                    $(this).parents('.panel').children('.panel-body').find('input').prop("checked", true);
                }else{
                    $(this).parents('.panel').children('.panel-body').find('input').prop("checked", false);
                }
            })
        })
    </script>
@stop